package com.sinosoft;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
//import org.springframework.cloud.config.client.DiscoveryClientConfigServiceBootstrapConfiguration;
//import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.context.annotation.Bean;

/**
 * @author loujiang
 * @date 2020/12/24 10:55 下午
 * @NOTE:
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableConfigurationProperties
public class ConfigClientApplication {

    public static void main(String[] args) {
//        new SpringApplicationBuilder(ConfigClientApplication.class).
//                web(WebApplicationType.SERVLET)
//                .run(args);

        SpringApplication.run(ConfigClientApplication.class, args);

    }


}
